package com.yonyou.cyxdms.basedata.service.feign;

import com.yonyou.cyx.framework.bean.dto.framework.RestResultResponse;
import com.yonyou.cyxdms.basedata.service.dto.HasStockDTO;
import com.yonyou.cyxdms.basedata.service.dto.dmsFeign.ResponseDTO;
import com.yonyou.cyxdms.basedata.service.dto.sap.*;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cxf-service")
public interface SapProductClient {

    @ApiOperation("从SAP获取产品信息")
    @PostMapping("/sap/product/productInfo")
    RestResultResponse<SapProOutDto> getProductInfo(@RequestBody SapProductInDto dto);

    @ApiOperation("从SAP获取选装信息")
    @PostMapping("/sap/product/optionInfo")
    RestResultResponse<SapConfigOptionOutDto> getOptionInfo(@RequestBody SapOptionInDto dto);
}
